//
//  NetPolyv.swift
//  ddx0513
//
//  Created by XuJian on 15/7/3.
//  Copyright (c) 2015年 jiang yongbin. All rights reserved.
//

import Foundation

class NetPolyv {
    //获取单个视频的信息
    class func getVideoInfoById(vid: String, successHandler: (JSON) -> Void) {
        let url = "http://v.polyv.net/uc/services/rest?method=getById"
        let a = ["readtoken": DBUtils.mem.vReadToken, "vid": vid]
        
        NetUtils.videoNetRequest(Method.GET, URLString: url, parameters: a, responseHandler: nil, netErrorHandler: nil, successHandler: successHandler, interErrorHandler: nil, jsonErrorHandler: nil)
    }
}